package com.smh.demo1.a37;

import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

/**
 * @author shiminghui
 * @date 2025/5/9 19:41
 * @description: TODO
 */
@Component("bean2")
public class FactoryBean2 implements FactoryBean {
    @Override
    public Object getObject() throws Exception {
        return new Bean2();
    }

    @Override
    public Class<?> getObjectType() {
        return Bean2.class;
    }

    @Override
    public boolean isSingleton() {
        return true;
    }
}
